﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="true" CodeBehind="EnterpriseView.aspx.cs" Inherits="Runda.EShop.SaaS.CustomerManage.EnterpriseView" %>
<%@ Register Src="~/UserControl/EnterpriseInfo.ascx" TagPrefix="uc" TagName="EnterpriseInfo" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %>
<asp:Content ID="Content0" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cphLeft" runat="server">
    <uc:LeftMenu runat="server" ID="ucLeftMenu"  TopMenuCode="Func1000"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />企业信息</span>
    </div>
    <div class="clear"></div>
    <uc:EnterpriseInfo runat="server" ID="ucEnterpriseInfo" />
        <div class="clear"></div>
      <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
            <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />用户列表</span>
        </div>
        <div class="clear"></div>
        <asp:GridView ID="gvCustomerList" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField HeaderText="登录账号">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkbtnView" runat="server" OnClientClick='<%# "return OnOpenWinCustom(\"CustomerView.aspx?CustomerID="+Eval("CustomerID")+"\",\"客户查看\",900,600)" %>'><%# Eval("CustomerCode") %></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
          <asp:BoundField DataField="CustomerName" HeaderText="姓名" /> 
          <asp:BoundField DataField="DeptName" HeaderText="所属部门" /> 
        </Columns>            
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" 
        NumericButtonCount="10" onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>
        
  <div class="clear"></div>
 <div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />客户配送地址列表</span>
  </div>
  <div class="clear"><span class="banner6 r" style="margin: 3px 10px 3px 0;">
                    <asp:LinkButton ID="lnkbtnSync" runat="server" onclick="lnkbtnSync_Click">同步地址</asp:LinkButton>
                    </span></div>
  <asp:GridView ID="gvAddress" runat="server" AutoGenerateColumns="False">
    <Columns>
        <asp:BoundField DataField="Address" HeaderText="地址" />
        <asp:BoundField DataField="IsDefault" HeaderText="是否默认" />
    </Columns>            
    </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager2" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" 
        NumericButtonCount="10" onpagechanged="AspNetPager2_PageChanged"></webdiyer:AspNetPager>
</asp:Content>
